/*
 * 系统所有请求地址.
 * @Author: sachuangwei@ygsoft.com
 * @Date: 2018-05-05 16:44:19
 */
import { PORT1 } from "@/api/config/servicePort";

let CONTEXT = PORT1;

export default {
  LOGIN: CONTEXT + "/login",
  LOGOUT: CONTEXT + "/logout",
  BASE_FIND_ALL: CONTEXT + "/data/findAll/",
  BASE_FIND: CONTEXT + "/data/find/",
  BASE_FINDONE: CONTEXT + "/data/findOne/",
  BASE_FINDCOUNT: CONTEXT + "/data/findCount/",
  BASE_SAVE: CONTEXT + "/data/save/",
  BASE_SAVE_DOCS: CONTEXT + "/data/saveDocs/",
  BASE_FIND_PAGE: CONTEXT + "/data/findPage/",
  BASE_FIND_TREE: CONTEXT + "/data/findTree/",
  BASE_UPDATE: CONTEXT + "/data/update/",
  BASE_UPDATEDELETE: CONTEXT + "/data/updateDelete/",
  BASE_UPDATEADD: CONTEXT + "/data/updateAdd/",
  BASE_UPDATES: CONTEXT + "/data/updateDocs/",
  BASE_DELETE_ID: CONTEXT + "/data/delete/",
  BASE_DELETE: CONTEXT + "/data/deleteDocs/",
  BASE_GROUP: CONTEXT + "/data/group/",
  BASE_GROUP1: CONTEXT + "/data/group1/",
  BASE_FIND_TOPONE: CONTEXT + "/data/findTopOne/",
  BASE_FILE_UPLOAD: CONTEXT + "/file/upload",
  BASE_FILE_DOWNLOAD: CONTEXT + "/file/",
  BASE_FILE_DELETE: CONTEXT + "/file/delete/",
  BASE_IMPORT_FILE: CONTEXT + "/excel/import/",
  BASE_EXPORT_FILE: CONTEXT + "/excel/export/",
  BASE_EXPORT_COMMON: CONTEXT + "/excel/common/export",
  BASE_IMPORT_COMMON: CONTEXT + "/excel/common/import",

  // 保存图片
  SYS_SAVE_IMAGE: CONTEXT + "/data/save/imgs",
  SYS_FIND_IMAGE: CONTEXT + "/data/find/imgs/",

  // 获取指定序列自增值
  SYS_NEXT_VALUE: CONTEXT + "/data/counter/",
  // 取消指定序列自增值
  SYS_RENEXT_VALUE: CONTEXT + "/data/recounter/"
};
